/*
 * IVRConstant.java Created on 2006-11-29
 * Copyright(c) 2006-2008 by vnv
 * ALL Rights Reserved.
 */
package cn.agiledata.bank.webService.constant;

import java.util.HashMap;
import java.util.Map;


/**
 *   Thie constnat is description the IVR interface constant
 *   @author maxianbo
 */
public class IVRConstant {
    // This is the common result value. ALL IVR interface method all have
    // those return property.
	
	public static final String SEARCH_DATE_DAY = "-01";
	public static final String SEARCH_DATE_FIX = "20";
    /** The  exactness result */
    public static final String COMMON_RESULT_TRUE = "0000";

    /** The fail result */
    public static final String COMMON_RESULT_FAIL = "0001";

    /** The passwd error */
    public static final String COMMON_PASSWD_ERROR = "0002";

    /** The paramter deformity */
    public static final String COMMON_PARAMTER_DEFORMITY = "0003";

    /** The login user is not find  */
    public static final String COMMON_USER_NOT_FIND = "0004";

    /** The request parament is null */
    public static final String COMMON_PARMATER_IS_NULL = "0005";

    /** The  exactness result */
    public static final String LOGIN_RESULT_TRUE = "0000";

    /** The fail result */
    public static final String LOGIN_USER_NOT_FIND = "0001";

    /** The passwd error */
    public static final String LOGIN_PASSWD_ERROR = "0002";

    /** Order payment transaction success */
    public static final String ORDER_PAYMENT_TRANS_SUCCESS = "0000";

    /** Order payment transaction fail */
    public static final String ORDER_PAYMENT_TRANS_FAIL = "0001";

    /** Order payment transaction success */
    public static final String ORDER_PAYMENT_USERNOTFIND = "0002";

    /** Order fill money success */
    public static final String ORDER_FILL_MONEY_SUCCESS = "0000";

    /** Order fill money fail */
    public static final String ORDER_FILL_MONEY_FAIL = "0001";

    /** Order fill money passwd error */
    public static final String ORDER_FILL_MONEY_PASSWDERROR = "0002";
    public static final String CHECK_STRING_SPLIT_FLAG = ",";
    
    /** Order payment status */
    public static final String ORDER_PAYMENT_OEDERNONTFIND = "0201";
    
    /**  payment type vnv and bank card */
    public static final String PAYMENT_VNV_TYPE = "1";
    public static final String PAYMENT_BANKCARD_TYPE = "3";

    /////////////////////////////////////////////////////////////////

    // public static final String ORDERFORMPAYMENT_CHECKFILED = "";

    // public static final String LOGINUSER = "";
    public static final String ORDERFORMPAYMENT = "subaccountid,paymentpasswd,orderid,paymentmoney,poundage,bankcard,paymenttype";
    public static final String ACCOUNTTOPUP = "bankcard,money,banktype,paymentpasswd";
    public static final String ACCOUNTDISTILLCASH = "bankcard,money,paymentpasswd,banktype";
    public static final String ACCOUNTTRANSFER = "credited,paymentpasswd,poundage,money";
    public static final String ACCOUNTPAYMENT = "bankcard,money,paymentpasswd,banktype";
    public static final String BANKCARDCHANGE = "outboundbankcard,inboundbankcard,paymentpasswd,outboundbanktype,inboundbanktype,money";
    public static final String SEARCHACCOUNT = "";
    public static final String GETSUBACCOUNTLIST = "";
    public static final String SEARCHSUBACCOUNTBLANCE = "";
    public static final String SEARCHINTEGRAL = "";
    public static final String SEARCHTRANSACTIONHISTORY = "searchdate";
    public static final String SEARCHWAITTRANSACTION = "";
    public static final String MODIFYPHONELOGINPASSWD = "newpasswd,originalpasswd";
    public static final String MODIFYPHONELOGINPAYMENTPASSWD = "originalpasswd,newpasswd";
    public static final String SETPHONELOGINPAYMENTPASSWD = "???????????";
    public static final String MODIFYTRANSACTIONBIGLIMIT = "maxmoney";
    public static final String GETSUBACCOUNT = "";
    public static final String GETTRANSACTIONHISTORY = "";
    public static final String GETSUPPORTBANK = "";
    public static final String GETACCOUNT = "";
    public static final String PREPREGISTER = "";
    public static final String GETTRANSACTIONPOUNDAGE = "orderid,credited,debitid,accountid,transpay,moneytype,transtype";
    public static final Map checkMethodofFieldsMap = new HashMap();

    static {
        checkMethodofFieldsMap.put("ORDERFORMPAYMENT",
            "paymentpasswd,orderid,money,bankcard,paymenttype,credited");
        checkMethodofFieldsMap.put("ACCOUNTTOPUP",
            "bankcard,money,banktype,paymentpasswd");
        checkMethodofFieldsMap.put("LOGINUSER",
        "userId,loginpasswd"); //登陆        
        checkMethodofFieldsMap.put("ACCOUNTDISTILLCASH",
            "userId,loginpasswd,bankcard,money,paymentpasswd,step"); //提现
        checkMethodofFieldsMap.put("ACCOUNTTRANSFER",
            "userId,loginpasswd,credited,paymentpasswd,money,step"); //网上付款
        checkMethodofFieldsMap.put("ACCOUNTPAYMENT",
            "bankcard,money,paymentpasswd,banktype");
        checkMethodofFieldsMap.put("ACCOUNTLIST",
        "userId,loginpasswd,pageSize,pageNum"); //银行卡列表
        checkMethodofFieldsMap.put("BANKCARDCHANGE",
            "outboundbankcard,inboundbankcard,paymentpasswd,outboundbanktype,inboundbanktype,money");
        checkMethodofFieldsMap.put("SEARCHACCOUNT", "");
        checkMethodofFieldsMap.put("GETSUBACCOUNTLIST", "");
        checkMethodofFieldsMap.put("SEARCHSUBACCOUNTBLANCE", "userId,loginpasswd");	//查询子账户余额接口
        checkMethodofFieldsMap.put("SEARCHINTEGRAL", "userId,loginpasswd");	//查询积分
        checkMethodofFieldsMap.put("SEARCHTRANSACTIONHISTORY",
            "userId,loginpasswd");//查询交易历史
        checkMethodofFieldsMap.put("SEARCHWAITTRANSACTION",
            "userId,loginpasswd");//待处理交易接口
        checkMethodofFieldsMap.put("MODIFYPHONELOGINPASSWD",
            "userId,loginpasswd,newpasswd");//修改电话登录密码
        checkMethodofFieldsMap.put("MODIFYPHONELOGINPAYMENTPASSWD",
            "userId,loginpasswd,newpasswd,originalpasswd");//修改电话支付密码
        checkMethodofFieldsMap.put("SETPHONELOGINPAYMENTPASSWD", "???????????");
        checkMethodofFieldsMap.put("MODIFYTRANSACTIONBIGLIMIT", "maxmoney");
        checkMethodofFieldsMap.put("GETSUBACCOUNT", "");
        checkMethodofFieldsMap.put("GETTRANSACTIONHISTORY", "");
        checkMethodofFieldsMap.put("GETSUPPORTBANK", "");
        checkMethodofFieldsMap.put("GETACCOUNT", "");
        checkMethodofFieldsMap.put("PREPREGISTER", "licenceName");
        checkMethodofFieldsMap.put("GETTRANSACTIONPOUNDAGE",
            "transtype,credited,money,moneytype,banktype,bankcard");
    }
    
    // this fied is mock bank name
    public static final String BANK_NAME_ICBC = "中国工商银行";
    public static final String BANK_NAME_CCB = "中国建设银行";
    public static final String BANK_NAME_ABCHINA = "中国农业银行";
}
